package com.lishe.lishe.lishe.module.excitation.bean;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;

/**
 * Created by shino on 2017/12/11.
 * 订单状态对象
 */

public class WelfareOrderObject implements Serializable {
    // 	福利订单号
    @SerializedName("orderNo")
    private String orderNo;
    // 	福利订单状态Id
    @SerializedName("id")
    private String orderId;
    // 	福利订单状态
    @SerializedName("orderStatus")
    private String orderStatus;//订单状态：0:支付成功 1:员工领取中 2:订单准备中 3:已发货 4:已完成’
    @SerializedName("createTime")
    private String createTime;

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(String orderStatus) {
        this.orderStatus = orderStatus;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    //订单状态：0:支付成功 1:员工领取中 2:订单准备中 3:已发货 4:已完成’
    public String getOrderStatusToString() {
        String msg = null;
        if (orderStatus == null) {
            return msg;
        }
        switch (orderStatus) {
            case "0":
                msg = "支付成功";
                break;
            case "1":
                msg = "员工领取中";
                break;
            case "2":
                msg = "订单准备中";
                break;
            case "3":
                msg = "已发货";
                break;
            case "4":
                msg = "已完成";
                break;
        }
        return msg;
    }
}
